import request from '@/utils/request'

export const listEval = (search) =>
    request({
        url: "/listEval",
        method: "get",
        params: {
            ateName: search.ateName,
            offset: search.offset,
            limit: search.limit,
        }
    })

export const deleteEval = (id) =>
    request({
        url: "/deleteEval" + id,
        method: "delete",
    })

export const addEval = (evalate) =>
    request({
        url: "/addEval",
        method: "post",
        data: evalate
    })

export const beforeUpdate = (id) =>
    request({
        url: "/beforeSelect" + id,
        method: "post"
    })

export const updateEval = (id, evalate) =>
    request({
        url: "/updateEval",
        method: "put",
        data: evalate
    })